﻿using System.Linq;
using System.Text;
using System.Diagnostics;
using System.Runtime.Serialization;
using System.Collections;
using System.Data;
using System.ComponentModel;
using System.Data.OracleClient;
using WPFExcelReport.Helpers;
using WPFExcelReport.Controls;
using System.Collections.Generic;
using System;
namespace WPFExcelReport
{
    public partial class VEKKOPF
    {
        public string EKAUTO(Dictionary<string, object> pm)
        {
            string muauf = "";
            switch (app.company)
            {
                case "TST":
                    //KRS = year.Substring(2, 2);
                    KRS = pm["FKRS"].ToString();
                    switch (app.AppMode)
                    {
                        case "TISSUE":
                            //KRS = year.Substring(3, 1) + "S";
                            EKKADRZU = "TSB ";
                            break;
                        case "TMODE":
                            //KRS = year.Substring(3, 1) + "M";
                            EKKADRZU = "TMB ";
                            break;

                    }
                    break;
                default:
                    KRS = pm["FKRS"].ToString();
                    EKKADRZU = app.company;
                    break;
            }
            DataSet Set = pm["Set"] as DataSet;
            if (Set == null)
                return "";
            if (Set.Tables[0].Rows.Count == 0)
                return "";
            bool IsHasMU = false;
            dwData = MUX.TBMain.NewRow();
            dwData["ABAMANDANT"] = app.Mandant;
            dwData["ABAVKAUFTYP"] = Set.Tables[0].Rows[0]["ABAVKAUFTYP"];
            dwData["ABAVKAUFKRS"] = Set.Tables[0].Rows[0]["ABAVKAUFKRS"];
            dwData["ABAVKAUFLFD"] = Set.Tables[0].Rows[0]["ABAVKAUFLFD"];
            SResult = MUX.QueryABAUFM(dwData, 17);
            foreach (DataRow row in SResult.Tables[0].Rows)
            {
                if (row["ABAAUFLFD"].ToString() != "000000")
                    IsHasMU = true;
            }
            if (IsHasMU)
                muauf= "B" + SResult.Tables[0].Rows[0]["ABAAUFKRS"].ToString() + SResult.Tables[0].Rows[0]["ABAAUFLFD"].ToString();
            dwData = TBMain.NewRow();
            LFD = VSDDAT.SD22.GETNEXT("0022", KRS, "EKAUFTR");
            SetUpNewRow(ref dwData, null);
            pm["KRS"] = KRS;
            pm["LFD"] = LFD;
            dwData["EKKAUFART"] = "BE";
            dwData["EKKAUFKRS"] = KRS;
            dwData["EKKAUFLFD"] = LFD;
            dwData["EKKLIEFNR"] = pm["LSLIEFNR"].ToString();
            dwData["EKKWAEHRSL"] = pm["WAEHRSL"].ToString();
            Insert(dwData);
            int pos = 1;
            foreach (DataRow row in Set.Tables[0].Rows)
            {
                row["AUFTYP"] = "B";
                row["KRS"] = KRS;
                row["LFD"] = LFD;
                row["POS"] = Helpers.Helper.Right("000" + pos, 3); ;
                pos++;
            }
            VEKP.EKPAUTO(pm);
            VVKP.MUREV(pm);
            muauf = "B" + KRS + LFD;
            return muauf;
        }

        public void EKKCHK(Dictionary<string, object> pm)
        {
            dwData = TBMain.NewRow();
            dwData["EKKMANDANT"] = app.Mandant;
            dwData["EKKAUFKRS"] = pm["KRS"].ToString();
            dwData["EKKAUFLFD"] = pm["LFD"].ToString();
            UpdateEKKOPF(dwData, 2, app.company);
        }

        public void EKPCHG(Dictionary<string, object> pm)
        {
            dwData = TBMain.NewRow();
            dwData["EKKMANDANT"] = app.Mandant;
            dwData["EKKAUFKRS"] = pm["KRS"].ToString();
            dwData["EKKAUFLFD"] = pm["LFD"].ToString();
            UpdateEKKOPF(dwData, 21, app.company);
        }

        public bool LSEKK(Dictionary<string, object> pm)
        {
            dwData = TBMain.NewRow();
            dwData["EKKMANDANT"] = app.Mandant;
            dwData["EKKLIEFNR"] = pm["LIEFNR"].ToString();
            dwData["EKKFILLER"] = " AND ROWNUM<2";
            SResult = QEKK02(dwData);
            if (SResult.Tables[0].Rows.Count > 0)
            {
                return true;
            }
            return false;
        }

        public void Insert(DataRow _dwEKK)
        {
            DeleteEKKOPF(_dwEKK, 1);
            InsertEKKOPF(_dwEKK, app.company);
            TBMain.Rows.InsertAt(_dwEKK, 0);
        }

        public void MANAGEEKP(DataRow dwBase)
        {
            dwData = VEKP.TBMain.NewRow();
            dwData["EKPMANDANT"] = app.Mandant;
            dwData["EKPAUFKRS"] = dwBase["EKKAUFKRS"];
            dwData["EKPAUFLFD"] = dwBase["EKKAUFLFD"];
            VEKP.DeleteEKPOS(dwData, 2);
        }

        public void CHECKEKKVR(DataRow dwBase, string renr)
        {
            PM["RENR"] = renr;
            PM["KRS"] = dwBase["EKKAUFKRS"].ToString();
            PM["LFD"] = dwBase["EKKAUFLFD"].ToString();
            PM["AUFTYP"] = "B";
            VRK.CHECKBYEKK(PM);
        }

        public DataSet EKKLOAD(Dictionary<string, object> pm)
        {
            dwData = TBMain.NewRow();
            dwData["EKKMANDANT"] = app.Mandant;
            dwData["EKKAUFKRS"] = pm["KRS"].ToString();
            dwData["EKKAUFLFD"] = pm["LFD"].ToString();
            SResult = QEKK01(dwData);
            return SResult;
        }
    }
    public partial class VEKKOPF
    {
       
        VEKADR _EKD;
        public VEKADR EKD
        {
            get
            {
                if (_EKD == null) _EKD = new VEKADR();
                return _EKD;
            }
        }
        VABAUFM _MU;
        public VABAUFM MU
        {
            get
            {
                if (_MU == null) _MU = new VABAUFM();
                return _MU;
            }
        }
        VVKADR _VKD;
        public VVKADR VKD
        {
            get
            {
                if (_VKD == null) _VKD = new VVKADR();
                return _VKD;
            }
        }
        VVRKOPF _VRK;
        public VVRKOPF VRK
        {
            get
            {
                if (_VRK == null) _VRK = new VVRKOPF();
                return _VRK;
            }
        }
        VVKZUAB _VZB;
        public VVKZUAB VZB
        {
            get
            {
                if (_VZB == null) _VZB = new VVKZUAB();
                return _VZB;
            }
        }
        VVRPOS _VRP;
        public VVRPOS VRP
        {
            get
            {
                if (_VRP == null) _VRP = new VVRPOS();
                return _VRP;
            }
        }
        VVKPOS _VVKP;
        public VVKPOS VVKP
        {
            get
            {
                if (_VVKP == null) _VVKP = new VVKPOS();
                return _VVKP;
            }
        }
        VEKPOS _VEKP;
        public VEKPOS VEKP
        {
            get
            {
                if (_VEKP == null) _VEKP = new VEKPOS();
                return _VEKP;
            }
        }

        VWDECK _VWD;
        public VWDECK VWD
        {
            get
            {
                if (_VWD == null) _VWD = new VWDECK();
                return _VWD;
            }
        }
        VICC_WBBEW _WBW;
        public VICC_WBBEW WBW
        {
            get
            {
                if (_WBW == null) _WBW = new VICC_WBBEW();
                return _WBW;
            }
        }
        VWBBEW _WBWT;
        public VWBBEW WBWT
        {
            get
            {
                if (_WBWT == null) _WBWT = new VWBBEW();
                return _WBWT;
            }
        }
        VWGBST VWGBST;
        VABAUFM _MUX;
        public VABAUFM MUX
        {
            get
            {
                if (_MUX == null) _MUX = new VABAUFM();
                return _MUX;
            }
        }
        public readonly static VEKKOPF Instance = new VEKKOPF();
        public string EKKSACHB { get { if (dwMaster == null) return ""; return dwMaster["EKKSACHB"].ToString(); } set { if (dwMaster == null) return; dwMaster["EKKSACHB"] = value; OnPropertyChanged("EKKSACHB", value); } } //lENGth 8
        public string EKKAUFKRS { get { if (dwMaster == null) return ""; return dwMaster["EKKAUFKRS"].ToString(); } set { if (dwMaster == null) return; dwMaster["EKKAUFKRS"] = value; OnPropertyChanged("EKKAUFKRS", value); } } //lENGth 2
        public string EKKAUFLFD { get { if (dwMaster == null) return ""; return dwMaster["EKKAUFLFD"].ToString(); } set { if (dwMaster == null) return; dwMaster["EKKAUFLFD"] = value; OnPropertyChanged("EKKAUFLFD", value); } } //lENGth 6
        public string EKKAUFART { get { if (dwMaster == null) return ""; return dwMaster["EKKAUFART"].ToString(); } set { if (dwMaster == null) return; dwMaster["EKKAUFART"] = value; OnPropertyChanged("EKKAUFART", value); } } //lENGth 2
        public double EKKME1 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["EKKME1"].ToString()); } set { if (dwMaster == null) return; dwMaster["EKKME1"] = value; OnPropertyChanged("EKKME1", value); } } //lENGth 0
        public double EKKME2 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["EKKME2"].ToString()); } set { if (dwMaster == null) return; dwMaster["EKKME2"] = value; OnPropertyChanged("EKKME2", value); } } //lENGth 0
        public double EKKME3 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["EKKME3"].ToString()); } set { if (dwMaster == null) return; dwMaster["EKKME3"] = value; OnPropertyChanged("EKKME3", value); } } //lENGth 0
        public double EKKME4 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["EKKME4"].ToString()); } set { if (dwMaster == null) return; dwMaster["EKKME4"] = value; OnPropertyChanged("EKKME4", value); } } //lENGth 0
        public double EKKME5 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["EKKME5"].ToString()); } set { if (dwMaster == null) return; dwMaster["EKKME5"] = value; OnPropertyChanged("EKKME5", value); } } //lENGth 0
        public double EKKME6 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["EKKME6"].ToString()); } set { if (dwMaster == null) return; dwMaster["EKKME6"] = value; OnPropertyChanged("EKKME6", value); } } //lENGth 0
        public double EKKME7 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["EKKME7"].ToString()); } set { if (dwMaster == null) return; dwMaster["EKKME7"] = value; OnPropertyChanged("EKKME7", value); } } //lENGth 0
        public double EKKME8 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["EKKME8"].ToString()); } set { if (dwMaster == null) return; dwMaster["EKKME8"] = value; OnPropertyChanged("EKKME8", value); } } //lENGth 0
        public double EKKME9 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["EKKME9"].ToString()); } set { if (dwMaster == null) return; dwMaster["EKKME9"] = value; OnPropertyChanged("EKKME9", value); } } //lENGth 0
        public double EKKME10 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["EKKME10"].ToString()); } set { if (dwMaster == null) return; dwMaster["EKKME10"] = value; OnPropertyChanged("EKKME10", value); } } //lENGth 0
        public double EKKWE1 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["EKKWE1"].ToString()); } set { if (dwMaster == null) return; dwMaster["EKKWE1"] = value; OnPropertyChanged("EKKWE1", value); } } //lENGth 0
        public double EKKWE2 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["EKKWE2"].ToString()); } set { if (dwMaster == null) return; dwMaster["EKKWE2"] = value; OnPropertyChanged("EKKWE2", value); } } //lENGth 0
        public double EKKWE3 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["EKKWE3"].ToString()); } set { if (dwMaster == null) return; dwMaster["EKKWE3"] = value; OnPropertyChanged("EKKWE3", value); } } //lENGth 0
        public double EKKWE4 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["EKKWE4"].ToString()); } set { if (dwMaster == null) return; dwMaster["EKKWE4"] = value; OnPropertyChanged("EKKWE4", value); } } //lENGth 0
        public double EKKWE5 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["EKKWE5"].ToString()); } set { if (dwMaster == null) return; dwMaster["EKKWE5"] = value; OnPropertyChanged("EKKWE5", value); } } //lENGth 0
        public double EKKWE6 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["EKKWE6"].ToString()); } set { if (dwMaster == null) return; dwMaster["EKKWE6"] = value; OnPropertyChanged("EKKWE6", value); } } //lENGth 0
        public double EKKWE7 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["EKKWE7"].ToString()); } set { if (dwMaster == null) return; dwMaster["EKKWE7"] = value; OnPropertyChanged("EKKWE7", value); } } //lENGth 0
        public double EKKWE8 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["EKKWE8"].ToString()); } set { if (dwMaster == null) return; dwMaster["EKKWE8"] = value; OnPropertyChanged("EKKWE8", value); } } //lENGth 0
        public double EKKWE9 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["EKKWE9"].ToString()); } set { if (dwMaster == null) return; dwMaster["EKKWE9"] = value; OnPropertyChanged("EKKWE9", value); } } //lENGth 0
        public double EKKWE10 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["EKKWE10"].ToString()); } set { if (dwMaster == null) return; dwMaster["EKKWE10"] = value; OnPropertyChanged("EKKWE10", value); } } //lENGth 0
        public string EKKGESSTA { get { if (dwMaster == null) return ""; return dwMaster["EKKGESSTA"].ToString(); } set { if (dwMaster == null) return; dwMaster["EKKGESSTA"] = value; OnPropertyChanged("EKKGESSTA", value); } } //lENGth 2
        public string EKKEINSTA { get { if (dwMaster == null) return ""; return dwMaster["EKKEINSTA"].ToString(); } set { if (dwMaster == null) return; dwMaster["EKKEINSTA"] = value; OnPropertyChanged("EKKEINSTA", value); } } //lENGth 2
        public string EKKKONDSL { get { if (dwMaster == null) return ""; return dwMaster["EKKKONDSL"].ToString(); } set { if (dwMaster == null) return; dwMaster["EKKKONDSL"] = value; OnPropertyChanged("EKKKONDSL", value); } } //lENGth 4
        public string EKKWAEHRSL { get { if (dwMaster == null) return ""; return dwMaster["EKKWAEHRSL"].ToString(); } set { if (dwMaster == null) return; dwMaster["EKKWAEHRSL"] = value; OnPropertyChanged("EKKWAEHRSL", value); } } //lENGth 3
        public string EKKZEICH { get { if (dwMaster == null) return ""; return dwMaster["EKKZEICH"].ToString(); } set { if (dwMaster == null) return; dwMaster["EKKZEICH"] = value; OnPropertyChanged("EKKZEICH", value); } } //lENGth 14
        public string EKKAKKRED { get { if (dwMaster == null) return ""; return dwMaster["EKKAKKRED"].ToString(); } set { if (dwMaster == null) return; dwMaster["EKKAKKRED"] = value; OnPropertyChanged("EKKAKKRED", value); } } //lENGth 15
        public string EKKADRZU { get { if (dwMaster == null) return ""; return dwMaster["EKKADRZU"].ToString(); } set { if (dwMaster == null) return; dwMaster["EKKADRZU"] = value; OnPropertyChanged("EKKADRZU", value); } } //lENGth 4
        public string EKKLIEFNR { get { if (dwMaster == null) return ""; return dwMaster["EKKLIEFNR"].ToString(); } set { if (dwMaster == null) return; dwMaster["EKKLIEFNR"] = value; OnPropertyChanged("EKKLIEFNR", value); } } //lENGth 8
        public string EKKBUCHKRS { get { if (dwMaster == null) return ""; return dwMaster["EKKBUCHKRS"].ToString(); } set { if (dwMaster == null) return; dwMaster["EKKBUCHKRS"] = value; OnPropertyChanged("EKKBUCHKRS", value); } } //lENGth 3
        public string EKKRSTBEZ { get { if (dwMaster == null) return ""; return dwMaster["EKKRSTBEZ"].ToString(); } set { if (dwMaster == null) return; dwMaster["EKKRSTBEZ"] = value; OnPropertyChanged("EKKRSTBEZ", value); } } //lENGth 6
 
        public string EKKKOMMNR { get { if (dwMaster == null) return ""; return dwMaster["EKKKOMMNR"].ToString(); } set { if (dwMaster == null) return; dwMaster["EKKKOMMNR"] = value; OnPropertyChanged("EKKKOMMNR", value); } } //lENGth 20
        #region======ColumnSchema==========
        /*
 public string EKKMANDANT { get { if (dwMaster == null) return ""; return dwMaster["EKKMANDANT"].ToString(); } set { if (dwMaster == null) return; dwMaster["EKKMANDANT"] = value; OnPropertyChanged("EKKMANDANT", value); } } //lENGth 2
 public double EKKAENZL { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["EKKAENZL"].ToString()); } set { if (dwMaster == null) return; dwMaster["EKKAENZL"] = value; OnPropertyChanged("EKKAENZL", value); } } //lENGth 0
 public string EKKAENB { get { if (dwMaster == null) return ""; return dwMaster["EKKAENB"].ToString(); } set { if (dwMaster == null) return; dwMaster["EKKAENB"] = value; OnPropertyChanged("EKKAENB", value); } } //lENGth 8
 public double EKKAEND { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["EKKAEND"].ToString()); } set { if (dwMaster == null) return; dwMaster["EKKAEND"] = value; OnPropertyChanged("EKKAEND", value); } } //lENGth 0
 public string EKKNEUB { get { if (dwMaster == null) return ""; return dwMaster["EKKNEUB"].ToString(); } set { if (dwMaster == null) return; dwMaster["EKKNEUB"] = value; OnPropertyChanged("EKKNEUB", value); } } //lENGth 8
 public double EKKNEUD { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["EKKNEUD"].ToString()); } set { if (dwMaster == null) return; dwMaster["EKKNEUD"] = value; OnPropertyChanged("EKKNEUD", value); } } //lENGth 0
 public string EKKAUFGRP { get { if (dwMaster == null) return ""; return dwMaster["EKKAUFGRP"].ToString(); } set { if (dwMaster == null) return; dwMaster["EKKAUFGRP"] = value; OnPropertyChanged("EKKAUFGRP", value); } } //lENGth 1
 public string EKKAUFART { get { if (dwMaster == null) return ""; return dwMaster["EKKAUFART"].ToString(); } set { if (dwMaster == null) return; dwMaster["EKKAUFART"] = value; OnPropertyChanged("EKKAUFART", value); } } //lENGth 2
 public string EKKARTGR { get { if (dwMaster == null) return ""; return dwMaster["EKKARTGR"].ToString(); } set { if (dwMaster == null) return; dwMaster["EKKARTGR"] = value; OnPropertyChanged("EKKARTGR", value); } } //lENGth 1
 public string EKKZEICH { get { if (dwMaster == null) return ""; return dwMaster["EKKZEICH"].ToString(); } set { if (dwMaster == null) return; dwMaster["EKKZEICH"] = value; OnPropertyChanged("EKKZEICH", value); } } //lENGth 14
 public string EKKAKKRED { get { if (dwMaster == null) return ""; return dwMaster["EKKAKKRED"].ToString(); } set { if (dwMaster == null) return; dwMaster["EKKAKKRED"] = value; OnPropertyChanged("EKKAKKRED", value); } } //lENGth 15
 public string EKKSACHB { get { if (dwMaster == null) return ""; return dwMaster["EKKSACHB"].ToString(); } set { if (dwMaster == null) return; dwMaster["EKKSACHB"] = value; OnPropertyChanged("EKKSACHB", value); } } //lENGth 8
 public string EKKRSTBEZ { get { if (dwMaster == null) return ""; return dwMaster["EKKRSTBEZ"].ToString(); } set { if (dwMaster == null) return; dwMaster["EKKRSTBEZ"] = value; OnPropertyChanged("EKKRSTBEZ", value); } } //lENGth 6
 public string EKKLIEFKOMP { get { if (dwMaster == null) return ""; return dwMaster["EKKLIEFKOMP"].ToString(); } set { if (dwMaster == null) return; dwMaster["EKKLIEFKOMP"] = value; OnPropertyChanged("EKKLIEFKOMP", value); } } //lENGth 1
 public string EKKBADR { get { if (dwMaster == null) return ""; return dwMaster["EKKBADR"].ToString(); } set { if (dwMaster == null) return; dwMaster["EKKBADR"] = value; OnPropertyChanged("EKKBADR", value); } } //lENGth 1
 public string EKKLADR { get { if (dwMaster == null) return ""; return dwMaster["EKKLADR"].ToString(); } set { if (dwMaster == null) return; dwMaster["EKKLADR"] = value; OnPropertyChanged("EKKLADR", value); } } //lENGth 1
 public string EKKRADR { get { if (dwMaster == null) return ""; return dwMaster["EKKRADR"].ToString(); } set { if (dwMaster == null) return; dwMaster["EKKRADR"] = value; OnPropertyChanged("EKKRADR", value); } } //lENGth 1
 public string EKKKONDSL { get { if (dwMaster == null) return ""; return dwMaster["EKKKONDSL"].ToString(); } set { if (dwMaster == null) return; dwMaster["EKKKONDSL"] = value; OnPropertyChanged("EKKKONDSL", value); } } //lENGth 4
 
 public string EKKPREISLST { get { if (dwMaster == null) return ""; return dwMaster["EKKPREISLST"].ToString(); } set { if (dwMaster == null) return; dwMaster["EKKPREISLST"] = value; OnPropertyChanged("EKKPREISLST", value); } } //lENGth 5
 public string EKKKNTRNRL { get { if (dwMaster == null) return ""; return dwMaster["EKKKNTRNRL"].ToString(); } set { if (dwMaster == null) return; dwMaster["EKKKNTRNRL"] = value; OnPropertyChanged("EKKKNTRNRL", value); } } //lENGth 15
 public string EKKKOKRS { get { if (dwMaster == null) return ""; return dwMaster["EKKKOKRS"].ToString(); } set { if (dwMaster == null) return; dwMaster["EKKKOKRS"] = value; OnPropertyChanged("EKKKOKRS", value); } } //lENGth 2
 public string EKKKOLFD { get { if (dwMaster == null) return ""; return dwMaster["EKKKOLFD"].ToString(); } set { if (dwMaster == null) return; dwMaster["EKKKOLFD"] = value; OnPropertyChanged("EKKKOLFD", value); } } //lENGth 6
 public double EKKBDAT { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["EKKBDAT"].ToString()); } set { if (dwMaster == null) return; dwMaster["EKKBDAT"] = value; OnPropertyChanged("EKKBDAT", value); } } //lENGth 0
 public double EKKDATV { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["EKKDATV"].ToString()); } set { if (dwMaster == null) return; dwMaster["EKKDATV"] = value; OnPropertyChanged("EKKDATV", value); } } //lENGth 0
 public double EKKDATB { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["EKKDATB"].ToString()); } set { if (dwMaster == null) return; dwMaster["EKKDATB"] = value; OnPropertyChanged("EKKDATB", value); } } //lENGth 0
 public string EKKANLFRLNR { get { if (dwMaster == null) return ""; return dwMaster["EKKANLFRLNR"].ToString(); } set { if (dwMaster == null) return; dwMaster["EKKANLFRLNR"] = value; OnPropertyChanged("EKKANLFRLNR", value); } } //lENGth 8
 
 public string EKKLO { get { if (dwMaster == null) return ""; return dwMaster["EKKLO"].ToString(); } set { if (dwMaster == null) return; dwMaster["EKKLO"] = value; OnPropertyChanged("EKKLO", value); } } //lENGth 2
 public string EKKLB { get { if (dwMaster == null) return ""; return dwMaster["EKKLB"].ToString(); } set { if (dwMaster == null) return; dwMaster["EKKLB"] = value; OnPropertyChanged("EKKLB", value); } } //lENGth 2
 public string EKKLP { get { if (dwMaster == null) return ""; return dwMaster["EKKLP"].ToString(); } set { if (dwMaster == null) return; dwMaster["EKKLP"] = value; OnPropertyChanged("EKKLP", value); } } //lENGth 8
 public double EKKLIZENZME { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["EKKLIZENZME"].ToString()); } set { if (dwMaster == null) return; dwMaster["EKKLIZENZME"] = value; OnPropertyChanged("EKKLIZENZME", value); } } //lENGth 0
 public double EKKVERBRME { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["EKKVERBRME"].ToString()); } set { if (dwMaster == null) return; dwMaster["EKKVERBRME"] = value; OnPropertyChanged("EKKVERBRME", value); } } //lENGth 0
 public double EKKME1 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["EKKME1"].ToString()); } set { if (dwMaster == null) return; dwMaster["EKKME1"] = value; OnPropertyChanged("EKKME1", value); } } //lENGth 0
 public double EKKME2 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["EKKME2"].ToString()); } set { if (dwMaster == null) return; dwMaster["EKKME2"] = value; OnPropertyChanged("EKKME2", value); } } //lENGth 0
 public double EKKME3 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["EKKME3"].ToString()); } set { if (dwMaster == null) return; dwMaster["EKKME3"] = value; OnPropertyChanged("EKKME3", value); } } //lENGth 0
 public double EKKME4 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["EKKME4"].ToString()); } set { if (dwMaster == null) return; dwMaster["EKKME4"] = value; OnPropertyChanged("EKKME4", value); } } //lENGth 0
 public double EKKME5 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["EKKME5"].ToString()); } set { if (dwMaster == null) return; dwMaster["EKKME5"] = value; OnPropertyChanged("EKKME5", value); } } //lENGth 0
 public double EKKME6 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["EKKME6"].ToString()); } set { if (dwMaster == null) return; dwMaster["EKKME6"] = value; OnPropertyChanged("EKKME6", value); } } //lENGth 0
 public double EKKME7 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["EKKME7"].ToString()); } set { if (dwMaster == null) return; dwMaster["EKKME7"] = value; OnPropertyChanged("EKKME7", value); } } //lENGth 0
 public double EKKME8 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["EKKME8"].ToString()); } set { if (dwMaster == null) return; dwMaster["EKKME8"] = value; OnPropertyChanged("EKKME8", value); } } //lENGth 0
 public double EKKME9 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["EKKME9"].ToString()); } set { if (dwMaster == null) return; dwMaster["EKKME9"] = value; OnPropertyChanged("EKKME9", value); } } //lENGth 0
 public double EKKME10 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["EKKME10"].ToString()); } set { if (dwMaster == null) return; dwMaster["EKKME10"] = value; OnPropertyChanged("EKKME10", value); } } //lENGth 0
 public double EKKWE1 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["EKKWE1"].ToString()); } set { if (dwMaster == null) return; dwMaster["EKKWE1"] = value; OnPropertyChanged("EKKWE1", value); } } //lENGth 0
 public double EKKWE2 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["EKKWE2"].ToString()); } set { if (dwMaster == null) return; dwMaster["EKKWE2"] = value; OnPropertyChanged("EKKWE2", value); } } //lENGth 0
 public double EKKWE3 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["EKKWE3"].ToString()); } set { if (dwMaster == null) return; dwMaster["EKKWE3"] = value; OnPropertyChanged("EKKWE3", value); } } //lENGth 0
 public double EKKWE4 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["EKKWE4"].ToString()); } set { if (dwMaster == null) return; dwMaster["EKKWE4"] = value; OnPropertyChanged("EKKWE4", value); } } //lENGth 0
 public double EKKWE5 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["EKKWE5"].ToString()); } set { if (dwMaster == null) return; dwMaster["EKKWE5"] = value; OnPropertyChanged("EKKWE5", value); } } //lENGth 0
 public double EKKWE6 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["EKKWE6"].ToString()); } set { if (dwMaster == null) return; dwMaster["EKKWE6"] = value; OnPropertyChanged("EKKWE6", value); } } //lENGth 0
 public double EKKWE7 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["EKKWE7"].ToString()); } set { if (dwMaster == null) return; dwMaster["EKKWE7"] = value; OnPropertyChanged("EKKWE7", value); } } //lENGth 0
 public double EKKWE8 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["EKKWE8"].ToString()); } set { if (dwMaster == null) return; dwMaster["EKKWE8"] = value; OnPropertyChanged("EKKWE8", value); } } //lENGth 0
 public double EKKWE9 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["EKKWE9"].ToString()); } set { if (dwMaster == null) return; dwMaster["EKKWE9"] = value; OnPropertyChanged("EKKWE9", value); } } //lENGth 0
 public double EKKWE10 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["EKKWE10"].ToString()); } set { if (dwMaster == null) return; dwMaster["EKKWE10"] = value; OnPropertyChanged("EKKWE10", value); } } //lENGth 0
 public string EKKABLADEST { get { if (dwMaster == null) return ""; return dwMaster["EKKABLADEST"].ToString(); } set { if (dwMaster == null) return; dwMaster["EKKABLADEST"] = value; OnPropertyChanged("EKKABLADEST", value); } } //lENGth 4
 public string EKKATEXTSL { get { if (dwMaster == null) return ""; return dwMaster["EKKATEXTSL"].ToString(); } set { if (dwMaster == null) return; dwMaster["EKKATEXTSL"] = value; OnPropertyChanged("EKKATEXTSL", value); } } //lENGth 3
 public string EKKSTKZAEHL { get { if (dwMaster == null) return ""; return dwMaster["EKKSTKZAEHL"].ToString(); } set { if (dwMaster == null) return; dwMaster["EKKSTKZAEHL"] = value; OnPropertyChanged("EKKSTKZAEHL", value); } } //lENGth 4
 public string EKKRABART1 { get { if (dwMaster == null) return ""; return dwMaster["EKKRABART1"].ToString(); } set { if (dwMaster == null) return; dwMaster["EKKRABART1"] = value; OnPropertyChanged("EKKRABART1", value); } } //lENGth 3
 public double EKKRABPROZ1 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["EKKRABPROZ1"].ToString()); } set { if (dwMaster == null) return; dwMaster["EKKRABPROZ1"] = value; OnPropertyChanged("EKKRABPROZ1", value); } } //lENGth 0
 public string EKKRABART2 { get { if (dwMaster == null) return ""; return dwMaster["EKKRABART2"].ToString(); } set { if (dwMaster == null) return; dwMaster["EKKRABART2"] = value; OnPropertyChanged("EKKRABART2", value); } } //lENGth 3
 public double EKKRABPROZ2 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["EKKRABPROZ2"].ToString()); } set { if (dwMaster == null) return; dwMaster["EKKRABPROZ2"] = value; OnPropertyChanged("EKKRABPROZ2", value); } } //lENGth 0
 public string EKKRABART3 { get { if (dwMaster == null) return ""; return dwMaster["EKKRABART3"].ToString(); } set { if (dwMaster == null) return; dwMaster["EKKRABART3"] = value; OnPropertyChanged("EKKRABART3", value); } } //lENGth 3
 public double EKKRABPROZ3 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["EKKRABPROZ3"].ToString()); } set { if (dwMaster == null) return; dwMaster["EKKRABPROZ3"] = value; OnPropertyChanged("EKKRABPROZ3", value); } } //lENGth 0
 public string EKKRABART4 { get { if (dwMaster == null) return ""; return dwMaster["EKKRABART4"].ToString(); } set { if (dwMaster == null) return; dwMaster["EKKRABART4"] = value; OnPropertyChanged("EKKRABART4", value); } } //lENGth 3
 public double EKKRABPROZ4 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["EKKRABPROZ4"].ToString()); } set { if (dwMaster == null) return; dwMaster["EKKRABPROZ4"] = value; OnPropertyChanged("EKKRABPROZ4", value); } } //lENGth 0
 public string EKKRABART5 { get { if (dwMaster == null) return ""; return dwMaster["EKKRABART5"].ToString(); } set { if (dwMaster == null) return; dwMaster["EKKRABART5"] = value; OnPropertyChanged("EKKRABART5", value); } } //lENGth 3
 public double EKKRABPROZ5 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["EKKRABPROZ5"].ToString()); } set { if (dwMaster == null) return; dwMaster["EKKRABPROZ5"] = value; OnPropertyChanged("EKKRABPROZ5", value); } } //lENGth 0
 public string EKKZUAB1 { get { if (dwMaster == null) return ""; return dwMaster["EKKZUAB1"].ToString(); } set { if (dwMaster == null) return; dwMaster["EKKZUAB1"] = value; OnPropertyChanged("EKKZUAB1", value); } } //lENGth 3
 public double EKKZUABPR1 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["EKKZUABPR1"].ToString()); } set { if (dwMaster == null) return; dwMaster["EKKZUABPR1"] = value; OnPropertyChanged("EKKZUABPR1", value); } } //lENGth 0
 public double EKKZUABWE1 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["EKKZUABWE1"].ToString()); } set { if (dwMaster == null) return; dwMaster["EKKZUABWE1"] = value; OnPropertyChanged("EKKZUABWE1", value); } } //lENGth 0
 public string EKKZUABME1 { get { if (dwMaster == null) return ""; return dwMaster["EKKZUABME1"].ToString(); } set { if (dwMaster == null) return; dwMaster["EKKZUABME1"] = value; OnPropertyChanged("EKKZUABME1", value); } } //lENGth 3
 public string EKKABRKZ1 { get { if (dwMaster == null) return ""; return dwMaster["EKKABRKZ1"].ToString(); } set { if (dwMaster == null) return; dwMaster["EKKABRKZ1"] = value; OnPropertyChanged("EKKABRKZ1", value); } } //lENGth 1
 public string EKKZUAB2 { get { if (dwMaster == null) return ""; return dwMaster["EKKZUAB2"].ToString(); } set { if (dwMaster == null) return; dwMaster["EKKZUAB2"] = value; OnPropertyChanged("EKKZUAB2", value); } } //lENGth 3
 public double EKKZUABPR2 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["EKKZUABPR2"].ToString()); } set { if (dwMaster == null) return; dwMaster["EKKZUABPR2"] = value; OnPropertyChanged("EKKZUABPR2", value); } } //lENGth 0
 public double EKKZUABWE2 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["EKKZUABWE2"].ToString()); } set { if (dwMaster == null) return; dwMaster["EKKZUABWE2"] = value; OnPropertyChanged("EKKZUABWE2", value); } } //lENGth 0
 public string EKKZUABME2 { get { if (dwMaster == null) return ""; return dwMaster["EKKZUABME2"].ToString(); } set { if (dwMaster == null) return; dwMaster["EKKZUABME2"] = value; OnPropertyChanged("EKKZUABME2", value); } } //lENGth 3
 public string EKKABRKZ2 { get { if (dwMaster == null) return ""; return dwMaster["EKKABRKZ2"].ToString(); } set { if (dwMaster == null) return; dwMaster["EKKABRKZ2"] = value; OnPropertyChanged("EKKABRKZ2", value); } } //lENGth 1
 public string EKKZUAB3 { get { if (dwMaster == null) return ""; return dwMaster["EKKZUAB3"].ToString(); } set { if (dwMaster == null) return; dwMaster["EKKZUAB3"] = value; OnPropertyChanged("EKKZUAB3", value); } } //lENGth 3
 public double EKKZUABPR3 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["EKKZUABPR3"].ToString()); } set { if (dwMaster == null) return; dwMaster["EKKZUABPR3"] = value; OnPropertyChanged("EKKZUABPR3", value); } } //lENGth 0
 public double EKKZUABWE3 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["EKKZUABWE3"].ToString()); } set { if (dwMaster == null) return; dwMaster["EKKZUABWE3"] = value; OnPropertyChanged("EKKZUABWE3", value); } } //lENGth 0
 public string EKKZUABME3 { get { if (dwMaster == null) return ""; return dwMaster["EKKZUABME3"].ToString(); } set { if (dwMaster == null) return; dwMaster["EKKZUABME3"] = value; OnPropertyChanged("EKKZUABME3", value); } } //lENGth 3
 public string EKKABRKZ3 { get { if (dwMaster == null) return ""; return dwMaster["EKKABRKZ3"].ToString(); } set { if (dwMaster == null) return; dwMaster["EKKABRKZ3"] = value; OnPropertyChanged("EKKABRKZ3", value); } } //lENGth 1
 public string EKKZUAB4 { get { if (dwMaster == null) return ""; return dwMaster["EKKZUAB4"].ToString(); } set { if (dwMaster == null) return; dwMaster["EKKZUAB4"] = value; OnPropertyChanged("EKKZUAB4", value); } } //lENGth 3
 public double EKKZUABPR4 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["EKKZUABPR4"].ToString()); } set { if (dwMaster == null) return; dwMaster["EKKZUABPR4"] = value; OnPropertyChanged("EKKZUABPR4", value); } } //lENGth 0
 public double EKKZUABWE4 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["EKKZUABWE4"].ToString()); } set { if (dwMaster == null) return; dwMaster["EKKZUABWE4"] = value; OnPropertyChanged("EKKZUABWE4", value); } } //lENGth 0
 public string EKKZUABME4 { get { if (dwMaster == null) return ""; return dwMaster["EKKZUABME4"].ToString(); } set { if (dwMaster == null) return; dwMaster["EKKZUABME4"] = value; OnPropertyChanged("EKKZUABME4", value); } } //lENGth 3
 public string EKKABRKZ4 { get { if (dwMaster == null) return ""; return dwMaster["EKKABRKZ4"].ToString(); } set { if (dwMaster == null) return; dwMaster["EKKABRKZ4"] = value; OnPropertyChanged("EKKABRKZ4", value); } } //lENGth 1
 public string EKKZUAB5 { get { if (dwMaster == null) return ""; return dwMaster["EKKZUAB5"].ToString(); } set { if (dwMaster == null) return; dwMaster["EKKZUAB5"] = value; OnPropertyChanged("EKKZUAB5", value); } } //lENGth 3
 public double EKKZUABPR5 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["EKKZUABPR5"].ToString()); } set { if (dwMaster == null) return; dwMaster["EKKZUABPR5"] = value; OnPropertyChanged("EKKZUABPR5", value); } } //lENGth 0
 public double EKKZUABWE5 { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["EKKZUABWE5"].ToString()); } set { if (dwMaster == null) return; dwMaster["EKKZUABWE5"] = value; OnPropertyChanged("EKKZUABWE5", value); } } //lENGth 0
 public string EKKZUABME5 { get { if (dwMaster == null) return ""; return dwMaster["EKKZUABME5"].ToString(); } set { if (dwMaster == null) return; dwMaster["EKKZUABME5"] = value; OnPropertyChanged("EKKZUABME5", value); } } //lENGth 3
 public string EKKABRKZ5 { get { if (dwMaster == null) return ""; return dwMaster["EKKABRKZ5"].ToString(); } set { if (dwMaster == null) return; dwMaster["EKKABRKZ5"] = value; OnPropertyChanged("EKKABRKZ5", value); } } //lENGth 1
 public string EKKZUARTF { get { if (dwMaster == null) return ""; return dwMaster["EKKZUARTF"].ToString(); } set { if (dwMaster == null) return; dwMaster["EKKZUARTF"] = value; OnPropertyChanged("EKKZUARTF", value); } } //lENGth 3
 public double EKKZUABPRF { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["EKKZUABPRF"].ToString()); } set { if (dwMaster == null) return; dwMaster["EKKZUABPRF"] = value; OnPropertyChanged("EKKZUABPRF", value); } } //lENGth 0
 public double EKKZUABWEF { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["EKKZUABWEF"].ToString()); } set { if (dwMaster == null) return; dwMaster["EKKZUABWEF"] = value; OnPropertyChanged("EKKZUABWEF", value); } } //lENGth 0
 public string EKKMEEHF { get { if (dwMaster == null) return ""; return dwMaster["EKKMEEHF"].ToString(); } set { if (dwMaster == null) return; dwMaster["EKKMEEHF"] = value; OnPropertyChanged("EKKMEEHF", value); } } //lENGth 3
 public string EKKABRKZF { get { if (dwMaster == null) return ""; return dwMaster["EKKABRKZF"].ToString(); } set { if (dwMaster == null) return; dwMaster["EKKABRKZF"] = value; OnPropertyChanged("EKKABRKZF", value); } } //lENGth 1
 public string EKKZUARTV { get { if (dwMaster == null) return ""; return dwMaster["EKKZUARTV"].ToString(); } set { if (dwMaster == null) return; dwMaster["EKKZUARTV"] = value; OnPropertyChanged("EKKZUARTV", value); } } //lENGth 3
 public double EKKZUABPRV { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["EKKZUABPRV"].ToString()); } set { if (dwMaster == null) return; dwMaster["EKKZUABPRV"] = value; OnPropertyChanged("EKKZUABPRV", value); } } //lENGth 0
 public double EKKZUABWEV { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["EKKZUABWEV"].ToString()); } set { if (dwMaster == null) return; dwMaster["EKKZUABWEV"] = value; OnPropertyChanged("EKKZUABWEV", value); } } //lENGth 0
 public string EKKMEEHV { get { if (dwMaster == null) return ""; return dwMaster["EKKMEEHV"].ToString(); } set { if (dwMaster == null) return; dwMaster["EKKMEEHV"] = value; OnPropertyChanged("EKKMEEHV", value); } } //lENGth 3
 public string EKKABRKZV { get { if (dwMaster == null) return ""; return dwMaster["EKKABRKZV"].ToString(); } set { if (dwMaster == null) return; dwMaster["EKKABRKZV"] = value; OnPropertyChanged("EKKABRKZV", value); } } //lENGth 1
 public double EKKVERSICH { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["EKKVERSICH"].ToString()); } set { if (dwMaster == null) return; dwMaster["EKKVERSICH"] = value; OnPropertyChanged("EKKVERSICH", value); } } //lENGth 0
 public string EKKEDIKZ { get { if (dwMaster == null) return ""; return dwMaster["EKKEDIKZ"].ToString(); } set { if (dwMaster == null) return; dwMaster["EKKEDIKZ"] = value; OnPropertyChanged("EKKEDIKZ", value); } } //lENGth 1
 
 public double EKKEDIDAT { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["EKKEDIDAT"].ToString()); } set { if (dwMaster == null) return; dwMaster["EKKEDIDAT"] = value; OnPropertyChanged("EKKEDIDAT", value); } } //lENGth 0
 public double EKKEDIZEIT { get { if (dwMaster == null) return 0.0; return Convert.ToDouble(dwMaster["EKKEDIZEIT"].ToString()); } set { if (dwMaster == null) return; dwMaster["EKKEDIZEIT"] = value; OnPropertyChanged("EKKEDIZEIT", value); } } //lENGth 0
 public string EKKABSAUFART { get { if (dwMaster == null) return ""; return dwMaster["EKKABSAUFART"].ToString(); } set { if (dwMaster == null) return; dwMaster["EKKABSAUFART"] = value; OnPropertyChanged("EKKABSAUFART", value); } } //lENGth 2
 public string EKKFILLER { get { if (dwMaster == null) return ""; return dwMaster["EKKFILLER"].ToString(); } set { if (dwMaster == null) return; dwMaster["EKKFILLER"] = value; OnPropertyChanged("EKKFILLER", value); } } //lENGth 31
 */
        #endregion
    }
}
